package com.woniu.zsd.recycle.mapper;

import com.woniu.zsd.recycle.dto.OrderDtoByStation;
import com.woniu.zsd.recycle.dto.SelectOrderByConditionDto;
import com.woniu.zsd.recycle.dto.selectAllOrderByType;
import com.woniu.zsd.recycle.model.RecyclingOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.zsd.recycle.param.ConditionParam;
import com.woniu.zsd.recycle.param.StationConditionParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 彭于晏
 * @since 2025年02月18日
 */
@Mapper
public interface RecyclingOrderMapper extends BaseMapper<RecyclingOrder> {

    List<SelectOrderByConditionDto> selectOrderByCondition(@Param("param") ConditionParam param);

    List<SelectOrderByConditionDto> stationSelectOrderByCondition(@Param("param") StationConditionParam param);

    List<OrderDtoByStation> selectAllOrderByStation(@Param("startOfDay") LocalDateTime startOfDay,@Param("endOfDay") LocalDateTime endOfDay);

    List<selectAllOrderByType> selectAllOrderByType(@Param("startOfDay") LocalDateTime startOfDay,@Param("endOfDay") LocalDateTime endOfDay);
}
